package map.abstractor.xmlmodel;

public class RootElement extends XMLObject {

	public RootElement( String name,String value) {
		super("UIModel:Object", false, false, false);
		this.addAttribute("xmi:version",new StringBuffer().append("2.0"));
		this.addAttribute("xmlns:xmi",new StringBuffer().append("http://www.omg.org/XMI"));
		this.addAttribute("xmlns:xsi", new StringBuffer().append("http://www.w3.org/2001/XMLSchema-instance"));
		this.addAttribute("xmlns:UIModel", new StringBuffer().append("http://xmluimodel/1.0"));
		this.addAttribute("xsi:schemaLocation",new StringBuffer().append("http://xmluimodel/1.0 XMLUIModel.ecore"));
		this.addAttribute(name, new StringBuffer().append(value));
	}
	public RootElement( ) {
		super("UIModel:Object", false, false, false);	
		this.addAttribute("xmi:version",new StringBuffer().append("2.0"));
		this.addAttribute("xmlns:xmi",new StringBuffer().append("http://www.omg.org/XMI"));
		this.addAttribute("xmlns:xsi", new StringBuffer().append("http://www.w3.org/2001/XMLSchema-instance"));
		this.addAttribute("xmlns:UIModel",new StringBuffer().append( "http://xmluimodel/1.0"));
		this.addAttribute("xsi:schemaLocation",new StringBuffer().append("http://xmluimodel/1.0 XMLUIModel.ecore"));
		this.addAttribute("name",new StringBuffer().append( "XMLModel"));

	}
}

